﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace XLDL.WRss
{
    public partial class Rss : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetDefaultView();
                
            }

        }

        private void SetDefaultView()
        {
            MultiView1.ActiveViewIndex = 0;
        }

        //protected void lnkTab1_Click(object sender, EventArgs e)
        //{
        //    MultiView1.ActiveViewIndex = 0;
        //}
        //protected void lnkTab2_Click(object sender, EventArgs e)
        //{
        //    MultiView1.ActiveViewIndex = 1;
        //}
        //protected void lnkTab3_Click(object sender, EventArgs e)
        //{
        //    MultiView1.ActiveViewIndex = 2;
        //}

        protected void link_thoitrang_Click(object sender, EventArgs e)
        {
            MultiView1.ActiveViewIndex = 0;
        }

        protected void link_thegioi_Click(object sender, EventArgs e)
        {
            MultiView1.ActiveViewIndex = 1;
        }

        protected void link_thethao_Click(object sender, EventArgs e)
        {
            MultiView1.ActiveViewIndex = 2;
        }
        protected void link_khuyenmai_Click(object sender, EventArgs e)
        {
            this.lbl_giavang.Text ="Giá Vàng và Ngoại tệ ngày "+DateTime.Now.ToString("dd/MM/yyyy")+" (Theo VnExpress.net)";
            MultiView1.ActiveViewIndex = 3;
        }
    }
}
